const state: any = {
    btnNum:0
},
getters = {
    
},
mutations = {
    btnprev(detl: any){
        let {btnNum} = detl;
        if(btnNum <= 0) return 0;
        btnNum --;
        state.btnNum = btnNum;
    },
    btnNext(detl: any){
        let {btnNum} = detl;
        if(btnNum >= 10) return 10;
        btnNum ++;
        state.btnNum = btnNum;
    }
},
actions = {

}
const obj: any = { state, getters, mutations, actions }
export default obj